//
//  CommentSecData.m
//  __PRODUCTNAME__
//
//  Created by LL.F on 16/09/09
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "CommentSecData.h"
#import "CommentParents.h"

@implementation CommentSecData

+ (NSDictionary *)objectClassInArray{
    return @{@"parents" : [CommentParents class]};
}
- (void)setValue:(id)value forKey:(NSString *)key
{
    
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"parents"]) {
        NSMutableArray<CommentParents *>  *dataArray = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            CommentParents *data = [CommentParents modelWithDic:dic];
            [dataArray addObject:data];
        }
        _parents = dataArray;
    }
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
    if ([key isEqualToString:@"id"]) {
        _id_Data = value ;
    }
}
@end
